﻿package org.cshoo.sys.data.dao;


import java.util.List;

import org.cshoo.common.data.dao.BaseDAO;
import org.cshoo.sys.data.entity.Dictionary;
import org.cshoo.sys.data.idao.IDictionaryDAO;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Restrictions;

public class DictionaryDAO extends BaseDAO implements IDictionaryDAO {

	@Override
	public List findDictionaryBatcheList(int firstResult, int maxResults) {
		DetachedCriteria criteria = DetachedCriteria.forClass(Dictionary.class).add(Restrictions.like("name", "",MatchMode.ANYWHERE));
		return super.findObjectBatcheListByCriteria(criteria, firstResult, maxResults);
	}
	
}
